package com.common.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;

import com.common.web.annotation.ControllerRequest;
import com.common.web.dto.response.RestResponse;

import springfox.documentation.annotations.ApiIgnore;

/**
 * @author ficus
 *
 */
@ControllerRequest(value = "/error/")
@ApiIgnore
public class ErrorController extends BaseController{
	
	@RequestMapping(value="404.json")
	public RestResponse deal404() {
		return RestResponse.noResourceResult();
	}
	
	@RequestMapping(value="unknow.json")
	public RestResponse dealThroble() {
		RestResponse apiResult=RestResponse.unknowResult();
		apiResult.setData(getResponse().toString());
		return apiResult;
	}
}
